package xpoi.yangda.xin.model;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 数据源实体
 *
 * @author izifeng
 * @version 创建时间 2018/8/30 11:39
 * @site https://gitee.com/izifeng/XPOI.git
 */
public class DataSource implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 自定义字段
     */
    private Map<String, String> fieldMap = new ConcurrentHashMap<>();

    /**
     * 数据源
     */
    private List<JSONObject> dsList;

    public DataSource(List<JSONObject> dsList) {
        this.dsList = dsList;
    }

    public DataSource(Map<String, String> fieldMap, List<JSONObject> dsList) {
        this.fieldMap = fieldMap;
        this.dsList = dsList;
    }

    public Map<String, String> getFieldMap() {
        return fieldMap;
    }

    public void setFieldMap(Map<String, String> fieldMap) {
        this.fieldMap = fieldMap;
    }

    public List<JSONObject> getDsList() {
        return dsList;
    }

    public void setDsList(List<JSONObject> dsList) {
        this.dsList = dsList;
    }
}
